package zhu.yu.OOP;

import java.sql.SQLOutput;

public class Demo5StudentReturn {
    public static void main(String[] args) {
        Demo2Student stu = getStudent();
        System.out.println(stu.name);
    }
    public static Demo2Student getStudent() {
        Demo2Student stu = new Demo2Student();
        stu.name = "xiaoming";
        return stu;
    }
}
